/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_resourcedelete")
//@NamedQueries({@NamedQuery(name = "TResourcedelete.findAll", query = "SELECT t FROM TResourcedelete t"), @NamedQuery(name = "TResourcedelete.findById", query = "SELECT t FROM TResourcedelete t WHERE t.id = :id"), @NamedQuery(name = "TResourcedelete.findBySpcode", query = "SELECT t FROM TResourcedelete t WHERE t.spcode = :spcode"), @NamedQuery(name = "TResourcedelete.findByType", query = "SELECT t FROM TResourcedelete t WHERE t.type = :type"), @NamedQuery(name = "TResourcedelete.findByUrl", query = "SELECT t FROM TResourcedelete t WHERE t.url = :url"), @NamedQuery(name = "TResourcedelete.findByFormat", query = "SELECT t FROM TResourcedelete t WHERE t.format = :format"), @NamedQuery(name = "TResourcedelete.findByComments", query = "SELECT t FROM TResourcedelete t WHERE t.comments = :comments")})
public class TResourcedelete implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "spcode")
    private String spcode;
    @Column(name = "type")
    private String type;
    @Column(name = "url")
    private String url;
    @Column(name = "format")
    private String format;
    @Column(name = "comments")
    private String comments;

    public TResourcedelete() {
    }

    public TResourcedelete(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSpcode() {
        return spcode;
    }

    public void setSpcode(String spcode) {
        this.spcode = spcode;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TResourcedelete)) {
            return false;
        }
        TResourcedelete other = (TResourcedelete) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TResourcedelete[id=" + id + "]";
    }

}
